export default {
	namespaced:true,
	state(){
		return{
			address:JSON.parse(uni.getStorageSync('address') || '{}')
		}
	},
	mutations:{
		updateAddress(state,address){
			state.address=address
			this.commit('m_user/saveAddressToStorage')
		},
		saveAddressToStorage(state) {
			uni.setStorageSync('address',JSON.stringify(state.address))
		}
	},
	getters:{
		
	}
}